package com.mdd.admin.validate.category;

import com.mdd.common.validator.annotation.IntegerContains;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 服务分类状态修改
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "服务分类状态修改请求对象", description = "服务分类状态修改请求对象")
public class GoodsCategoryStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    public interface create {
    }

    public interface update {
    }

    public interface delete {
    }

    @NotNull(message = "id参数必传且需大于0", groups = {update.class, delete.class})
    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotNull(message = "isShow参数缺失", groups = {create.class, update.class})
    @IntegerContains(values = {0, 1}, message = "isShow参数值不在符合范围", groups = {create.class, update.class})
    @ApiModelProperty(value = "是否显示:1-是;0-否")
    private Integer isShow;
}
